//
//  UIImage+resizableImage.m
//  图片拉伸
//
//  Created by yk on 16/2/29.
//  Copyright © 2016年 yk. All rights reserved.
//

#import "UIImage+resizableImage.h"

@implementation UIImage (resizableImage)

+(UIImage *)imageResizableWithNamed:(NSString *)name
{
    UIImage *image = [UIImage imageNamed:name];
    image = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
    
    return image;
}

@end
